Class WSRedirectURL

java.lang.Object
com.seclore.fs.ws.client.redirect.WSRedirectURL

public class WSRedirectURL extends Object
This is a helper class for generating the redirect URL of the Policy Server.
  • Field Details

    • PSP_REPOSITORY_FILTER_SHOW_ALL

      public static final int PSP_REPOSITORY_FILTER_SHOW_ALL
      Constant for Show all Repository.
      See Also:
    • PSP_REPOSITORY_FILTER_SHOW_ONLY_SYS_REPO

      public static final int PSP_REPOSITORY_FILTER_SHOW_ONLY_SYS_REPO
      Constant for Show only System Repository.
      See Also:
    • PSP_REPOSITORY_FILTER_SKIP_SYS_REPO

      public static final int PSP_REPOSITORY_FILTER_SKIP_SYS_REPO
      Constant for All Repositories other than System Repositories.
      See Also:
  • Constructor Details

    • WSRedirectURL

      public WSRedirectURL(String pPSBaseURL, String pSessionId) throws WSClientException
      This constructor stores the base URL and the Session id in the member variables, that will be used while creating the redirect URLs.
      Parameters:
      pPSBaseURL - The base URL for the Policy Server.
      pSessionId - If provided, the session Id will be used to generate the URL. If null then it will not be used.
      Throws:
      WSClientException - Thrown by the method is the URL provided is not valid.
  • Method Details

    • setSesionId

      public void setSesionId(String pSessionId)
      Sets the HttpSessionId member variable.
      Parameters:
      pSessionId - The id of the session created with the Policy Server.
    • getRedirectURLForPSHome

      public String getRedirectURLForPSHome(int pRepositoryFilter, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) throws WSClientException
      This method returns the Policy Server portal home page URL.
      Parameters:
      pRepositoryFilter - Repository Filter. Must be one of the value of PSP_REPOSITORY_FILTER_SHOW_... constant.
      pAllowLogoutFromProtal - Whether to allow the user to logout from the Policy Server or not.
      pAutoCloseAfterTask - Close the browser window once the user performs the task.
      Returns:
      Policy Server portal home page URL.
      Throws:
      WSClientException - Thrown by the method if the requested Repository filter is invalid.
    • getRedirectURLForAddCredential

      public String getRedirectURLForAddCredential(boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask)
      This method returns the Policy Server portal URL to add a new Credential.
      Parameters:
      pAllowLogoutFromProtal - Whether to allow the user to logout from the Policy Server or not.
      pAutoCloseAfterTask - Close the browser window once the user performs the task.
      Returns:
      The Policy Server portal URL to add a new Credential.
    • getRedirectURLForEditCredential

      public String getRedirectURLForEditCredential(long pCredentialId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask)
      This method returns the Policy Server portal URL to update the requested Credential.
      Parameters:
      pCredentialId - The id of the Credential to be updated.
      pAllowLogoutFromProtal - Whether to allow the user to logout from the Policy Server or not.
      pAutoCloseAfterTask - Close the browser window once the user performs the task.
      Returns:
      The Policy Server portal URL to update the requested Credential.
    • getRedirectURLForViewFileDetails

      public String getRedirectURLForViewFileDetails(long pFileId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask)
      This method returns the Policy Server portal URL to view the requested file details.
      Parameters:
      pFileId - The id of the file requested to view details.
      pAllowLogoutFromProtal - Whether to allow the user to logout from the Policy Server or not.
      pAutoCloseAfterTask - Close the browser window once the user performs the task.
      Returns:
      The Policy Server portal URL to view the requested file details.
    • getRedirectURLForRedistributeFile

      public String getRedirectURLForRedistributeFile(long pFileId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask)
      This method returns the Policy Server portal URL to redistribute the requested file. Redistributing the File.
      Parameters:
      pFileId - The id of the file requested to redistribute.
      pAllowLogoutFromProtal - Whether to allow the user to logout from the Policy Server or not.
      pAutoCloseAfterTask - Close the browser window once the user performs the task.
      Returns:
      The Policy Server portal URL to redistribute the requested file.
    • getRedirectURLForViewActivityLogForFile

      public String getRedirectURLForViewActivityLogForFile(long pFileId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask)
      This method returns the Policy Server portal URL to view the file activity logs.
      Parameters:
      pFileId - The id of the file requested to view the activity logs.
      pAllowLogoutFromProtal - Whether to allow the user to logout from the Policy Server or not.
      pAutoCloseAfterTask - Close the browser window once the user performs the task.
      Returns:
      The Policy Server portal URL to view the activity logs for the requested file.
    • getRedirectURLForTransferOwnership

      public String getRedirectURLForTransferOwnership(long pFileId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) throws WSClientException
      This method returns the Policy Server portal URL to transfer ownership of requested file.
      Parameters:
      pFileId - The id of the file requested to transfer the ownership.
      pAllowLogoutFromProtal - Whether to allow the user to logout from the Policy Server or not.
      pAutoCloseAfterTask - Close the browser window once the user performs the task.
      Returns:
      The Policy Server portal URL to transfer the ownership of the requested file.
      Throws:
      WSClientException